//
//  CETestClient.h
//  CELog_Example
//
//  Created by maoerduo on 2021/2/26.
//  Copyright © 2021 maoerduo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CETestCase.h"
#import "CETestClientConfig.h"

NS_ASSUME_NONNULL_BEGIN

@interface CETestClient : NSObject

@property (nonatomic, readonly) CETestClientConfig * config;

+ (instancetype)shared;

- (void)setupWithConfig:(CETestClientConfig *)config parameter:(id<CETestCaseRequestParameter>)parameter;

//在调用同步方法以前，先注册
- (void)registTest:(id<CETestCase>)test;
- (void)removeTest:(NSString *)testID;

//同步所有的测试
- (void)synchronizeTests;

- (id<CETestCase> _Nullable)getTest:(NSString *)testID;

@end

NS_ASSUME_NONNULL_END
